<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.text.*" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"   pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>IPL 5 - RED</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-language" content="" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%
String resposeText = "";
String errorMesg = (String) session.getAttribute("error");
out.println("<script>alert(\\"+errorMesg+"\\)</script>");
if (session.getAttribute("resposeText") != null) {

	if(null != (String)session.getAttribute("resposeText")){ 
		out.println("<script>alert("+(String)session.getAttribute("resposeText")+")</script>");
    }else{
    	out.println("<script>alert(\"No Mesg\")</script>");
    }
	
	if(("Succesfully Submited").equals((String)session.getAttribute("resposeText"))){ 
		out.println("<script>alert(\"Succesfully Submited\")</script>");
    }else if(("User Not Registered").equals((String)session.getAttribute("resposeText"))){
    	out.println("<script>alert(\"User Not Registered\")</script>");
    }else if(("Entry already made").equals((String)session.getAttribute("resposeText"))){
    	out.println("<script>alert(\"Entry already made\")</script>");
    }else if(("Please enter your name").equals((String)session.getAttribute("resposeText"))){
    	out.println("<script>alert(\"Please enter your name\")</script>");
    }else if(("Exception Occurred").equals((String)session.getAttribute("resposeText"))){
    	out.println("<script>alert(\"Exception Occurred\")</script>");
    }else if(("Unauthorized User").equals((String)session.getAttribute("resposeText"))){
    	out.println("<script>alert(\"Unauthorized User\")</script>");
    }else if(("UserName Not Entered").equals((String)session.getAttribute("resposeText"))){
    	out.println("<script>alert(\"UserName Not Entered\")</script>");
    }else{
    	out.println("<script>alert(\\"+errorMesg+"\\)</script>");
    } 
} 
%>


    <div id="page">
        <div id="header">
            <h1><a href="#">IPL-5  2012</a></h1>
        </div>
        <%@ include file="links.jsp" %>
        <div>
			<%
			if(null!=errorMesg){
				%>
				<div style="color:red;">
				<b><%=errorMesg%></b>
				</div>
				<%
			}
			%>
		</div>
         
        <div id="main">		              
            <div id="content">	
			<!-- table>
				<tr>
				
					<td>
						<h3>Playing Rules</h3>
					</td>
				
				</tr>
				<tr>
					<td>
					1. Vote has to be entered 45 mins prior to the match i.e. 45 mins before the two time slots 4:30 pm IST & 8 pm IST.
					</td> 
				</tr>
 				<tr>
					<td>
2. If Site is not up while you tried voting then send an email but SITE is FIRST PRIORITY. 
 					</td> 
				</tr>
 				<tr>
					<td>
3. If you are not reachable through email then send SMS to Sandy/Cindy/Suku. Only these 3 guys, NRIs excuse us in this case. Need not reiterate the SMS should reach 45 mins prior to the match time slots. 
 					</td> 
				</tr>
 				<tr>
					<td>
4. Hall of Fame cutoff dates to be decided 10th of April or thru mutual consensus. Need MCCians inputs here. 
 					</td> 
				</tr>
 				<tr>
					<td>
5. Daily vote once put stays as is, doesn't matter if you selected the man in playing 11 or not. Each team size max as per IPL rules is 33. So you gotta choose from 33 not from 11. Once done is done STRICTLY. No queries entertained here. 
					</td> 
				</tr>
 				<tr>
					<td>
 
6. For any controversy minor/major The Governing Council consisting of Suku-GV-Cindy-Sandy to cast unbiased votes whenever needed. Let us all hope we don't go to this case. 
					</td> 
				</tr>
 				<tr>
					<td>
 
7. IF A DAILY VOTE DOESN'T GET A WINNER ON THAT DAY THEN THE POINTS GET TRANSFERRED TO WINNER TEAM ACCOUNT OF HALL OF FAME. 
					</td> 
				</tr>
 				<tr>
					<td>
 
8. SIMILARLY IN WORST CASE THERE IS NO WINNER OF HALL OF FAME THEN IT GETS TRANSFERRED TO RUNNERS UP GUY. 
					</td> 
				</tr>
 				<tr>
					<td>
 
9. IF THE RUNNERS UP GUY IS ALSO NOT THERE THEN GOD HELP US :) THE LEADING SCORER AS PER SUM OF DAILY TADKA POINTS & HALL OF FAME SCORES PUT TOGETHER IS TAKES THE WINNER OF HALL OF FAME POINTS. 
					</td> 
				</tr>
 				<tr>
					<td>
 
10. SIMILAR IS THE CASE FOR RUNNERS UP GUY IF THERE IS NO CLEAR CUT RUNNERS UP WINNER IN MCC THEN DAILY TADKA POINTS GET TRANSFERRED TO DAILYTADKA HIGHEST SCORER & BATSMAN/BOWLER OF HALLOFFAME POINTS. 
					</td> 
				</tr>
 				<tr>
					<td>
 
11. IF NO BOWLER/BATSMAN OF SERIES WINNER IN MCC THEN HOLD YOUR BREATH IT WOULD BE TRANSFERRED TO A JALWA ACCOUNT WITH SURPRISE PACK :)
					</td> 
				</tr>
 				<tr>
					<td>
 
Hope as many corner scenarios as possible have been covered, if you cite any discrepancies or gaps please bring forward. 
					</td> 
				</tr>
 				
			</table-->
                        
            </div><!-- content -->
                       
            <div class="clearing">&nbsp;</div>   
        </div><!-- main -->
    </div><!-- page -->
    <div id="footer">
        <p>Copyright &copy; 2010, designed by <a href="http://www.kiranvenkat.in/">kiranvenkat.in</a></p>
    </div>
</body>
</html>
<%
   if ( session.getAttribute("resposeText") != null && !("").equals(session.getAttribute("resposeText")))
   { 
		session.setAttribute("resposeText", null);
   }
%>